package me.alex.learnkotlin.learnKT6


class StaticDemo {
    fun static1() {
        println("static1")
    }

    companion object {
        //添加JvmStatic注解才能编译成真正的静态方法,这样Java中也能直接调用
        @JvmStatic
        fun static2() {
            println("static2")
        }
    }
}